﻿<Window x:Class="TwoDictionaries.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel LastChildFill="True" Background="LightGray">
        <StackPanel DockPanel.Dock="Bottom" Margin="5">
            <StackPanel Orientation="Horizontal">
                <Label>Key</Label>
                <TextBox Name="txtKey" Width="150">KEY</TextBox>
                <Label>Value</Label>
                <TextBox Name="txtValue" Width="150">VALUE</TextBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button Click="Add_Click">Add</Button>
                <Label>above key-value pair as an entry</Label>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button Click="Remove_Click">Remove</Button>
                <Label> all entries that have the key</Label>
            </StackPanel>
        </StackPanel>
        <UniformGrid Rows="1" Columns="2">
            <DockPanel LastChildFill="True">
                <Label DockPanel.Dock="Top" HorizontalAlignment="Center">ObservableKeyedCollection</Label>
                <Label DockPanel.Dock="Bottom" Content="{Binding Path=LeftStatus,Mode=OneWay}"/>
                <ListView ItemsSource="{Binding Path=LeftDic}">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="KEY" DisplayMemberBinding="{Binding Path=Key}"/>
                            <GridViewColumn Header="VALUE" DisplayMemberBinding="{Binding Path=Value}"/>
                        </GridView>
                    </ListView.View>
                </ListView>
            </DockPanel>
            <DockPanel LastChildFill="True">
                <Label DockPanel.Dock="Top" HorizontalAlignment="Center">multiset__adaptor&lt;ObservableCollection&gt;</Label>
                <Label DockPanel.Dock="Bottom" Content="{Binding Path=RightStatus,Mode=OneWay}"/>
                <ListView ItemsSource="{Binding Path=RightDic}">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="KEY" DisplayMemberBinding="{Binding Path=Key}"/>
                            <GridViewColumn Header="VALUE" DisplayMemberBinding="{Binding Path=Value}"/>
                        </GridView>
                    </ListView.View>
                </ListView>
            </DockPanel>
        </UniformGrid>
    </DockPanel>
</Window>
